aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/[username]
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-05 12:07:46 -0700
committerAdam Soltys <[email protected]>2022-10-05 12:07:46 -0700
commit90fd57b064d3ef0176d5747b79863d6e60a22fc1 (patch)
tree94375f4a74fe63d78bc868d9b6568a408881374e /src/routes/[username]
parent59b74034e6dac850f13eafb737034937505d321f (diff)
downloadcoinos-ui-90fd57b064d3ef0176d5747b79863d6e60a22fc1.tar.gz
coinos-ui-90fd57b064d3ef0176d5747b79863d6e60a22fc1.zip
detect internal sends
Diffstat (limited to 'src/routes/[username]')
-rw-r--r--src/routes/[username]/dashboard/+page.svelte54
-rw-r--r--src/routes/[username]/transactions/[...page]/+page.svelte4
2 files changed, 29 insertions, 29 deletions
diff --git a/src/routes/[username]/dashboard/+page.svelte b/src/routes/[username]/dashboard/+page.svelte
index 8d77b699..05f821ec 100644
--- a/src/routes/[username]/dashboard/+page.svelte
+++ b/src/routes/[username]/dashboard/+page.svelte
@@ -51,37 +51,37 @@
{/if}
</div>
-<div class="px-3 md:px-0 flex justify-center items-center mt-10 lg:mt-0 mb-20">
- <div>
- <span class="text-3xl font-bold block mb-1"
- >{$selectedRate
- ? f(accountBalanceFiat, user.currency)
- : $t('user.dashboard.fetchingRate')}</span
- >
+<div class="container px-4 max-w-md mx-auto">
+ <h1 class="text-center text-3xl md:text-4xl font-semibold mb-10">
+ Dashboard
+ </h1>
- <span class="text-secondary text-xl block">
- {accountBalanceSats} SAT
- </span>
+ <div class="text-5xl font-bold mb-2">
+ {$selectedRate ? f(accountBalanceFiat, user.currency) : $t('user.dashboard.fetchingRate')}
+ </div>
+
+ <div class="text-secondary text-2xl">
+ {accountBalanceSats} SAT
+ </div>
- <div class="grid sm:grid-cols-2 gap-2 mt-8">
- <a href={`/${user.username}/receive`}>
+ <div class="grid sm:grid-cols-2 gap-2 mt-8">
+ <a href={`/${user.username}/receive`}>
+ <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
+ >{$t('user.dashboard.receive')}</button
+ >
+ </a>
+ {#if user.account.balance > 0}
+ <a href="/send">
+ <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
+ >{$t('user.dashboard.withdraw')}</button
+ >
+ </a>
+ {:else}
+ <a href={`/${user.username}/settings`}>
<button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
- >{$t('user.dashboard.receive')}</button
+ >Setup Account</button
>
</a>
- {#if user.account.balance > 0}
- <a href="/send">
- <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
- >{$t('user.dashboard.withdraw')}</button
- >
- </a>
- {:else}
- <a href={`/${user.username}/settings`}>
- <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
- >Setup Account</button
- >
- </a>
- {/if}
- </div>
+ {/if}
</div>
</div>
diff --git a/src/routes/[username]/transactions/[...page]/+page.svelte b/src/routes/[username]/transactions/[...page]/+page.svelte
index 223418a3..18990fa3 100644
--- a/src/routes/[username]/transactions/[...page]/+page.svelte
+++ b/src/routes/[username]/transactions/[...page]/+page.svelte
@@ -23,9 +23,9 @@
<div class="flex flex-wrap justify-end mb-8">
{#if pages.length > 1}
{#each pages as _, i}
- <a href={`/${user.username}/transactions/${i + 1}`} class:active={page === i + 1}>
+ <a class="mr-1 last:mr-0" href={`/${user.username}/transactions/${i + 1}`} class:active={page === i + 1}>
<div
- class="border py-2 px-4 rounded-full border-2 w-12 h-12 hover:opacity-80 mr-1 text-center my-auto"
+ class="border py-2 px-4 rounded-full border-2 w-12 h-12 hover:opacity-80 text-center my-auto"
>
{i + 1}
</div>